'use strict';
const ip = require('ip');

module.exports = appInfo =>{
  console.log('this',this)
  return ({
    logger: {
      level: 'INFO',
      dir: '/logs/infinity',
    },
    proxy: {
      host: 'http://localhost:9001', // target host that matched path will be proxy to
      match: /^\/webpack/ // path pattern.
    },
    uploadDest: '/data/infinity/upload',
    servicePrefix:`http://infinity.carvenzhang.cn`,
    sequelize:{
      host: 'localhost',
      port: 3306,
      dialect: 'mysql',
      database: 'db_infinity',
      username: 'infinity',
      password: 'infinity123',
      benchmark: true,
      timezone: 'Asia/Shanghai',
      logging: appInfo.logger,
      define: {
          freezeTableName: false,
          underscored: true,
      },
    },
  });
  
}